import datetime
sys_name = ["II","GI","XL","LE"]
abs_suffix = ".abs"
tgz_suffix = ".tgz"

def create_abs_file_name():
    day = datetime.datetime.today()
    for sys in sys_name:
        for i in range(0,7):
            sys_day = (day + datetime.timedelta(days=i)).strftime("%Y_%m_%d")
            yield "%s_%s%s" % (sys, sys_day, abs_suffix)

def create_tgz_file_name():
    day = datetime.datetime.today()
    for sys in sys_name:
        for i in range(0,7):
            sys_day = (day + datetime.timedelta(days=i)).strftime("%Y_%m_%d")
            yield "%s_%s%s" % (sys, sys_day, tgz_suffix)


def create_file(file_name):
    f = open(file_name,"w")
    f.close()
if __name__ == "__main__":
    ftp_path = "G:/etl/FTP/"
    for abs_file_name in create_abs_file_name():
        create_file(ftp_path + abs_file_name)
    for tgz_file_name in create_tgz_file_name():
        create_file(ftp_path + tgz_file_name)
